package com.turing.post.cardmanagement.util;

import java.util.HashMap;

public class CardManaRespCode {
	private final static HashMap<String, String> _msgmap = new HashMap<String, String>();

	/**
	 * 信用额度<预存款下限
	 */
	public final static String SaleCreditDepositBill_Credit_LOWLIMIT = "SaleCreditDepositBillCreditLowError";
	public final static String SaleCreditDepositBill_STAUTS_TRUE = "SaleCreditDepositBillStatusIsTrue";
	/**
	 * 撤销用户和发卡用户不一致
	 */
	public final static String SaleCreditDepositBill_not_same_oper = "NotSameOper";
	/**
	 * 获取单个SaleCreditDepositBill实体为空
	 */
	public final static String SaleCreditDepositBill_null = "ObjIsNull";
	/**
	 * 发生金额小于0
	 */
	public final static String AMOUNT_LESS_THAN_ZERO = "AmountLessThanZero";
	/**
	 * 账单已被撤销
	 */
	public final static String BILL_IS_CANCEL = "cancelSaleCreditDepositBillIdIsNull";

	/**
	 * 根据响应码查询响应信息
	 * 
	 * @param respCode
	 * @return
	 */
	public static String getRespCodeMessage(String respCode) {
		String msg = _msgmap.get(respCode);
		return (msg == null) ? respCode : msg;
	}

	/**
	 * 参数为NULL
	 */
	public final static String RC_ARGS_NULL = "RC_ARGS_NULL";

	/**
	 * 操作员为NULL
	 */
	public final static String OPER_NULL = "OPER_NULL";

	/**
	 * 操作员不属于发卡商机构
	 */
	public final static String SYSBRANCH_NOT_SYSBRANCH_ISSUEBRANCH = "SYSBRANCH_NOT_SYSBRANCH_ISSUEBRANCH";

	/**
	 * 发卡商机构未激活
	 */
	public final static String SYSBRANCH_NOT_STATUS = "SYSBRANCH_NOT_STATUS";

	/**
	 * 销售机构为NULL
	 */
	public final static String SALEBRANCH_NULL = "SALEBRANCH_NULL";

	/**
	 * 销售商为NULL
	 */
	public final static String SALECOMPANY_NULL = "SALECOMPANY_NULL";

	/**
	 * 平台机构为NULL
	 */
	public final static String SYSBRANCH_NULL = "SYSBRANCH_NULL";

	/**
	 * 销售机构不属于操作员的管辖机构
	 */
	public final static String SALEBRANCH_NOTBELONG_SYSOPUSER = "SALEBRANCH_NOTBELONG_SYSOPUSER";

	/**
	 * 缴款金额<=0
	 */
	public final static String AMOUNT_SMALL = "AMOUNT_SMALL";

	/**
	 * 发卡商机构为NULL
	 */
	public final static String ISSUEBRANCH_NULL = "ISSUEBRANCH_NULL";

	/**
	 * 发卡商机构为NULL
	 */
	public final static String NORMAL_ENDDAY = "NORMAL_ENDDAY";
}
